package com.jeremyfeinstein.socket;

/**
 * Created by sunxunchao on 2019/1/23.
 *
 * 错误码
 */
public class Code {

    //webRTC处理码
    public static final int PUBLISH_ERROR     = 0X001;//发布时产生的错误
    public static final int SUBSCRIBE_ERROR   = 0X002;//订阅时发生的错误
    public static final int UNPUBLISH_ERROR   = 0X003;//取消发布时产生的错误
    public static final int UNSUBSCRIBE_ERROR = 0X004;//取消订阅时产生的错误
    public static final int PAUSE_ERROR       = 0X005;//暂停视频时产生的错误
    public static final int PLAY_ERROR        = 0X006;//播放视频时产生的错误
    public static final int CHANGE_REGION_ERROR      = 0X007;//切换视频位置时产生的错误
    public static final int UPDATE_REGION_ERROR      = 0X008;//更新视频位置时产生的错误
    public static final int SUBSCRIBE_ZOOM_ERROR     = 0X009;//订阅大视频时发生的错误
    public static final int UNSUBSCRIBE_ZOOM_ERROR   = 0X00A;//取消订阅大视频时产生的错误
    public static final int REPUBLISH_ERROR          = 0X00B;//重新发布时产生的错误
    public static final int RESUBSCRIBE_ERROR        = 0X00C;//重新订阅时发生的错误

    //socket处理码
    public static final int CONNECT_ERROR   = 0x001; //连接时产生的错误
    public static final int CONNECT_TIMEOUT = 0x002; //连接超时
    public static final int DISCONNECT      = 0x003; //断开连接
    public static final int OTHER_ERROR     = 0x004; //其他错误
    public static final int MSG_ERROR       = 0x005; //传递消息时返回的错误
}
